/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package ui.components;

import javax.swing.JLabel;
import javax.swing.JPasswordField;
import javax.swing.JTextField;

/**
 *
 * @author student1
 */
public class JPanelPasswordField extends javax.swing.JPanel {

    /**
     * Creates new form JPanelPasswordField
     */
    public JPanelPasswordField() {
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jlKorisnickaSifra = new javax.swing.JLabel();
        jpswKorisnickaSifra = new javax.swing.JPasswordField();
        jlErrKorisnickaSifra = new javax.swing.JLabel();

        jlKorisnickaSifra.setText("Korisnicka sifra:");

        jlErrKorisnickaSifra.setForeground(new java.awt.Color(255, 0, 0));
        jlErrKorisnickaSifra.setText("jLabel2");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jlErrKorisnickaSifra, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jlKorisnickaSifra, javax.swing.GroupLayout.PREFERRED_SIZE, 81, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 29, Short.MAX_VALUE)
                        .addComponent(jpswKorisnickaSifra, javax.swing.GroupLayout.PREFERRED_SIZE, 148, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jlKorisnickaSifra)
                    .addComponent(jpswKorisnickaSifra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jlErrKorisnickaSifra))
        );
    }// </editor-fold>//GEN-END:initComponents


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel jlErrKorisnickaSifra;
    private javax.swing.JLabel jlKorisnickaSifra;
    private javax.swing.JPasswordField jpswKorisnickaSifra;
    // End of variables declaration//GEN-END:variables

    public JLabel vratiKomponentuZaPrikazTeksta(){
    return jlKorisnickaSifra;
};

public JLabel vratiKomponentuZaPrikazGreske(){
    return jlErrKorisnickaSifra;
}; 

public JPasswordField vratiKomponentuTexta(){
    return jpswKorisnickaSifra;
}; 

}
